package com.ruoyi.chy.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 维修预约对象 repair_reservation
 * 
 * @author renmengbin
 * @date 2025-05-30
 */
public class RepairReservation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 用户号 */
    @Excel(name = "用户号")
    private Integer uid;
    /** 车主姓名 */
    @Excel(name = "车主姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reservationTime;

    /** 取车位置 */
    @Excel(name = "取车位置")
    private String location;

    /** 车辆类型 */
    @Excel(name = "车辆类型")
    private Long carTypeId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNum;

    /** 整车照片 */
    @Excel(name = "整车照片")
    private String vehiclePhotos;

    /** 维修部位照片 */
    @Excel(name = "维修部位照片")
    private String repairPhotos;

    /** 维修状态 */
    @Excel(name = "维修状态")
    private Long status;

    /** 逻辑删除字段，0未删除，1已删除 */
    private Long deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setReservationTime(Date reservationTime) 
    {
        this.reservationTime = reservationTime;
    }

    public Date getReservationTime() 
    {
        return reservationTime;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setCarTypeId(Long carTypeId) 
    {
        this.carTypeId = carTypeId;
    }

    public Long getCarTypeId() 
    {
        return carTypeId;
    }

    public void setCarNum(String carNum) 
    {
        this.carNum = carNum;
    }

    public String getCarNum() 
    {
        return carNum;
    }

    public void setVehiclePhotos(String vehiclePhotos) 
    {
        this.vehiclePhotos = vehiclePhotos;
    }

    public String getVehiclePhotos() 
    {
        return vehiclePhotos;
    }

    public void setRepairPhotos(String repairPhotos) 
    {
        this.repairPhotos = repairPhotos;
    }

    public String getRepairPhotos() 
    {
        return repairPhotos;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }
    public Integer getUid() {
        return uid;
    }
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("name", getName())
            .append("phone", getPhone())
            .append("reservationTime", getReservationTime())
            .append("location", getLocation())
            .append("carTypeId", getCarTypeId())
            .append("carNum", getCarNum())
            .append("vehiclePhotos", getVehiclePhotos())
            .append("repairPhotos", getRepairPhotos())
            .append("status", getStatus())
            .append("deleted", getDeleted())
                .append("uid", getUid())
            .toString();
    }
}
